<?
REQUIRE("../../protect/connect.php");
//Niv 0
//*****
$query="UPDATE sduser_perso SET perso_niv='0' WHERE perso_exp > 50 AND perso_niv!='0'";
$resultat=mysql_query($query);

//Niv 1
//*****
$query="UPDATE sduser_perso SET perso_niv='1' WHERE (perso_exp BETWEEN 51 AND 150) AND perso_niv!='1'";
$resultat=mysql_query($query);

//Niv 2
//*****
$query="UPDATE sduser_perso SET perso_niv='2' WHERE (perso_exp BETWEEN 151 AND 300) AND perso_niv!='2'";
$resultat=mysql_query($query);

//Niv 3
//*****
$query="UPDATE sduser_perso SET perso_niv='3' WHERE (perso_exp BETWEEN 301 AND 600) AND perso_niv!='3'";
$resultat=mysql_query($query);

//Niv 4
//*****
$query="UPDATE sduser_perso SET perso_niv='4' WHERE (perso_exp BETWEEN 601 AND 1000) AND perso_niv!='4'";
$resultat=mysql_query($query);

//Niv 5
//*****
$query="UPDATE sduser_perso SET perso_niv='5' WHERE (perso_exp BETWEEN 1001 AND 1500) AND perso_niv!='5'";
$resultat=mysql_query($query);

//Niv 6
//*****
$query="UPDATE sduser_perso SET perso_niv='6' WHERE (perso_exp BETWEEN 1501 AND 2250) AND perso_niv!='6'";
$resultat=mysql_query($query);

//Niv 7
//*****
$query="UPDATE sduser_perso SET perso_niv='7' WHERE (perso_exp BETWEEN 2251 AND 3375) AND perso_niv!='7'";
$resultat=mysql_query($query);

//Niv 8
//*****
$query="UPDATE sduser_perso SET perso_niv='8' WHERE (perso_exp BETWEEN 3376 AND 5063) AND perso_niv!='8'";
$resultat=mysql_query($query);

//Niv 9
//*****
$query="UPDATE sduser_perso SET perso_niv='9' WHERE (perso_exp BETWEEN 5064 AND 7088) AND perso_niv!='9'";
$resultat=mysql_query($query);

//Niv 10
//*****
$query="UPDATE sduser_perso SET perso_niv='10' WHERE (perso_exp BETWEEN 7089 AND 9923) AND perso_niv!='10'";
$resultat=mysql_query($query);

//Niv 11
//*****
$query="UPDATE sduser_perso SET perso_niv='11' WHERE (perso_exp BETWEEN 9924 AND 13892) AND perso_niv!='11'";
$resultat=mysql_query($query);

//Niv 12
//*****
$query="UPDATE sduser_perso SET perso_niv='12' WHERE (perso_exp BETWEEN 13893 AND 19448) AND perso_niv!='12'";
$resultat=mysql_query($query);

//Niv 13
//*****
$query="UPDATE sduser_perso SET perso_niv='13' WHERE (perso_exp BETWEEN 19449 AND 27227) AND perso_niv!='13'";
$resultat=mysql_query($query);

//Niv 14
//*****
$query="UPDATE sduser_perso SET perso_niv='14' WHERE (perso_exp BETWEEN 27228 AND 35396) AND perso_niv!='14'";
$resultat=mysql_query($query);

//Niv 15
//*****
$query="UPDATE sduser_perso SET perso_niv='15' WHERE (perso_exp BETWEEN 35397 AND 46014) AND perso_niv!='15'";
$resultat=mysql_query($query);

//Niv 16
//*****
$query="UPDATE sduser_perso SET perso_niv='16' WHERE (perso_exp BETWEEN 46015 AND 59818) AND perso_niv!='16'";
$resultat=mysql_query($query);

//Niv 17
//*****
$query="UPDATE sduser_perso SET perso_niv='17' WHERE (perso_exp BETWEEN 59819 AND 77764) AND perso_niv!='17'";
$resultat=mysql_query($query);

//Niv 18
//*****
$query="UPDATE sduser_perso SET perso_niv='18' WHERE (perso_exp BETWEEN 77765 AND 101093) AND perso_niv!='18'";
$resultat=mysql_query($query);

//Niv 19
//*****
$query="UPDATE sduser_perso SET perso_niv='19' WHERE (perso_exp BETWEEN 101094 AND 126367) AND perso_niv!='19'";
$resultat=mysql_query($query);

//Niv 20
//*****
$query="UPDATE sduser_perso SET perso_niv='20' WHERE (perso_exp BETWEEN 126368 AND 157958) AND perso_niv!='20'";
$resultat=mysql_query($query);






REQUIRE ("immunite.php");
//REQUIRE ("delete_perso.php");



//WHILE ($tmp=mysql_fetch_row($resultat)){

//}//Fin du while $tmp




?>



